﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Young3.FMSearch.Core.Entities.GameVersions;
using Young3.FMSearch.Core.Managers;
using Young3.FMSearch.Core.Offsets;
using Young3.FMSearch.Core.Attributes;

namespace Young3.FMSearch.Core.Entities.InGame
{
    //[FMType(UseCache = true)]
    public class Country : BaseObject
    {
        public Country(int memoryAddress, IVersion version)
            : base(memoryAddress, version)
        { }
                public Country(int memoryAddress, ArraySegment<byte> originalBytes, IVersion version)
            : base(memoryAddress, originalBytes, version)
        { }

        [FMEntity(CountryOffsets.Capital)]
        private Int32 CapitalAddress { get; set; }

        [FMPointer(CountryOffsets.Capital)]
        public City Capital { get; internal set; }

        [FMPointer(CountryOffsets.Continent)]
        public Continent Continent { get; internal set; }

        [FMEntity(CountryOffsets.Development)]
        public byte Development { get;set;}

        [FMEntity(CountryOffsets.EuroMember)]
        public byte EuroMember { get;set;}

        [FMEntity(CountryOffsets.Economy)]
        public byte Economy { get; set; }

        [FMEntityAttribute(CountryOffsets.FIFAPosition)]
        public Byte FIFAPosition { get; set; }

        [FMEntityAttribute(CountryOffsets.FIFAScore)]
        public Int16 FIFAScore { get; set; }

        [FMEntityAttribute(CountryOffsets.LeagueImportancy)]
        public Byte LeagueImportancy { get; set; }

        [FMEntityAttribute(CountryOffsets.Reputation)]
        public Int16 Reputation { get; set; }

        [FMEntityAttribute(CountryOffsets.Name)]
        public String Name { get; internal set; }

        public override string ToString()
        {
            return Name;
        }
    }

    //public enum CountryDevelopment
    //{
    //    FirstWorld = 1,
    //    SecondWorld = 2,
    //    ThirdWorld = 3
    //}

    //public enum CountryEUMember
    //{
    //    No = 1,
    //    Yes = 2
    //}

    //public enum CountryImportance
    //{
    //    NooneCares = 4,
    //    Important = 2,
    //    Unimportant = 3,
    //    VeryImportant = 1
    //}
}
